package com.yonyou.crm.sact.outwork.rmimpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yonyou.crm.sact.outwork.entity.OutworkRuleVO;
import com.yonyou.crm.sact.outwork.entity.RuleTimeListVO;
import com.yonyou.crm.sact.outwork.entity.TraceListVO;
import com.yonyou.crm.sact.outwork.entity.TraceVO;
import com.yonyou.crm.sact.outwork.rmitf.IOutworkRmService;
import com.yonyou.crm.sact.outwork.service.OutworkRuleBizServiceImpl;
import com.yonyou.crm.sact.outwork.service.TraceBizServiceImpl;

@Service
public class OutworkRmServiceImpl implements IOutworkRmService {

	@Autowired
	private OutworkRuleBizServiceImpl ruleService;
	
	@Autowired
	private TraceBizServiceImpl traceService;
	
	@Override
	public Map<String, Object> saveRule(OutworkRuleVO vo) {
		return ruleService.save(vo);
	}
	
	@Override
	public List<RuleTimeListVO> getRuleList(Map<String, Object> paraMap) {
		return ruleService.getRuleList(paraMap);
	}
	
	@Override
	public Map<String, Object> getRule(Map<String, Object> paraMap) {
		return ruleService.getRule(paraMap);
	}

	@Override
	public TraceVO saveTrace(TraceVO vo) {
		return traceService.saveVO(vo);
	}

	@Override
	public List<TraceListVO> getTraceList(Map<String, Object> paraMap) {
		return traceService.getTraceList(paraMap);
	}

	@Override
	public List<String> getAbsenceDates(Map<String, Object> paraMap) {
		return traceService.getAbsenceDateList(paraMap);
	}

	@Override
	public Map<String, Object> getSubOutworkList(Map<String, Object> paraMap) {
		return traceService.getSubworks(paraMap);
	}

}
